package me.magicall.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class U {
	static ApplicationContext context;

	public static ApplicationContext getApplicationContext() {
		checkContext();
		return context;
	}

	static void checkContext() {
		if (context == null) {
			final String configFile = "applicationContext.xml";
			context = new ClassPathXmlApplicationContext(configFile);
		}
	}
}
